package mapper;

import org.apache.ibatis.annotations.Select;
import org.example.bean.ForumsInfo;

import java.util.List;

public interface ForumsMapper {
    @Select("select * from forums")
    List<ForumsInfo> findAllForums();
    @Select("select * from forums where forumid=#{id}")
    ForumsInfo findForumsById(int id);
}
